package com.bjsxt.mapper;

import com.bjsxt.pojo.HostPower;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

public interface HostPowerMapper {
    @Insert("insert into t_host_power(hostid) values (#{param1}) ")
    Integer insertHostPower(Integer hostid);

    @Update("update t_host_power set hpstart=#{hpstart},hpstart_beigindate=#{hpstartBeigindate},hpstart_enddate=#{hpstartEnddate}," +
            "hp_order_power=#{hpOrderPower},hpstart_begintime=#{hpstartBegintime},hpstart_endtime=#{hpstartEndtime}," +
            "hpdiscount=#{hpdiscount},hp_dis_starttime=#{hpDisStarttime},hp_dis_endtime=#{hpDisEndtime},hpprice=#{hpprice}," +
            "hcosts=#{hcosts} where hostid=#{hostid}")
    Integer updateHostPower(HostPower hostPower);
}
